/**
 * 
 */
package com.intel.sam.automation.core.base;

import java.io.IOException;

import com.intel.sam.automation.core.AdaptorProxy;
import com.sip.comserver.communication.CommunicationMessage;

/**
 * @author Dhanushka Ariyasingha.
 */
public class CommonBase {

    private AdaptorProxy proxy = AdaptorProxy.createInstance();

    public String getPropertyById() {

        final String propertyValue = null;

        return propertyValue;
    }

    protected CommunicationMessage commit(final String inputJson, final String messageString)
            throws ClassNotFoundException, IOException {

        final CommunicationMessage message = new CommunicationMessage();
        message.setMessageHeader("JOBType:TestSuit|Executor:SAMTestSuitExecutor|ID:NULL|Port:NULL");
        message.setMessageBody(messageString);
        message.setObject(inputJson);

        final CommunicationMessage returnMessage = proxy.invoke(message);

        return returnMessage;

    }
}
